<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	template="/WEB-INF/templates/business/buyer/template.xhtml"
	xmlns:pe="http://primefaces.org/ui"
>
	<f:metadata>
		<f:viewParam
			name="bulletinId"
			value="#{bulletinHome3.id}"
		></f:viewParam>
		<f:event
			listener="#{bulletinHome3.initConversation()}"
			type="preRenderView"
		></f:event>
	</f:metadata>
	<ui:define name="buyer_head">
		<script>
			$(function(){
				showSuppliers([{name:'bulletinId', value:'#{bulletinHome3.id}'}])
			})
		</script>
	</ui:define>
	<ui:define name="buyer_content">
		<h2 style="color: red;text-align: center;font-weight:bold;">
			【#{bulletinHome3.instance.projectName}】可收到邀请中介列表
		</h2>
		<div style="width: 80%;text-align:center">
			<c:forEach items="#{bulletinChooseContoller.suppliers}" var="_supplier" varStatus="status">
			
			<p style="font-size:16px;line-height:25px;text-align: left;">
				#{status.index + 1}、
				<p:link outcome="/public/SupplierView.xhtml" target="_blank">
					#{_supplier.cnname}
					<f:param name="serviceSupplierId" value="#{_supplier.id}"></f:param>
				</p:link>
			</p>
		</c:forEach>
		</div>
		<h:form id="editForm">
			<p:remoteCommand  name="showSuppliers" actionListener="#{bulletinChooseContoller.getSupplierByBulletinId()}" />	 					
		</h:form>

		
		
		
		
		
	</ui:define>
</ui:composition>
